# Author:sp
# CreaTime: $(DATE)
# FileName: $(NAME)
# Description: simple introdution of the code
import datetime
def inputdate():
    indat=input('请输入开启日期：（20220808）后按回车：')
    indate=indat.strip()
    datastr=indate[0:4]+'-'+indate[4:6]+'-'+indate[6:]
    return datetime.datetime.strptime(datastr,'%Y-%m-%d')           #显示时间的格式，日期的格式化输出
if __name__=='__main__':
    print('-----------------推算日期---------------------------')
    sdate=inputdate()
    in_num=int(input('请输入间隔天数：'))
    fdate=sdate+datetime.timedelta(days=in_num)
    print('您的推算日期是：'+str(fdate).split(' ')[0])